<?
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/conn.inc.php");
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/property.inc.php");
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.inc.php");

?>
<script>
    $(function() {
        $("#_shadowPop").draggable();
    });
</script>

<body>
<?
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/topMenu.inc.php");
?>

<div id="_body" onmouseover="fnHideSubMenu()">
    <div id="_bodyLeft">
        <div id="_curMenu"><p><?=$__curTitle?></p></div>
        <div id="_curSubMenu">
        </div>
    </div>
    <div id="_bodyRight" style="height:720px;">
        <div id="search01">
            <div class="normal">
                <input type="text" id="findBillCd" onkeypress="fnGetList()" tabindex="1" style="width:120px;">
            </div>
            <div class="searchBtn" onClick="fnGetList01(1)" onkeypress="fnGetList()" style="width:50px;" tabindex="2">조 회</div>
            <div class="searchBtn" onClick="fnShadowPop('on')" style="width:50px;border-color:#FF6600;margin-left:20px;" tabindex="3">신 규</div>
        </div>
        <div id="grid01" onmouseover="fnHideSubMenu()" class="grid" style="float:left">
            <div id="grid01Top" class="gridTop">
                <div id="grid01Title" class="gridTitle"></div>
                <div id="grid01Cnt" class="gridCnt"></div>
            </div>
            <div id="grid01Header" style="overflow: hidden; height: 20px;"></div>
            <div id="grid01Body" style="overflow: auto" onscroll="fnScrolling('grid01')"></div>
            <div id="grid01BodyFix" style="position: absolute;display:none;overflow:hidden;"></div>
        </div>
    </div>

</div>
<div id="_bottom">

</div>
<div id="_shadowPop">
    <div id="_popTop">
        <div>Express 상세정보</div>
        <div style="float: right"><img src="/img/close.png" onclick="fnShadowPop('off')" style="margin:4px 7px 0 0;cursor:pointer;"></div>
    </div>
    <div id="_popBody">
        <div style="height:30px;width:100%">
            <div class="searchBtn" onClick="fnSave()" tabindex="91" onkeypress="fnSave()" style="width:50px;margin-left:140px;">저 장</div>
            <div class="searchBtn" onClick="fnReset()" style="width:50px;">신 규</div>
            <div class="searchBtn" onClick="fnCopy()" style="width:50px;">복 사</div>
            <div class="searchBtn" onClick="fnShadowPop('off')" style="width:50px;">닫기</div>
        </div>
        <div class="popGroup" style="height:287px;">
            <input type="hidden" id="expressCompCd">
            <div style="margin-top:5px;">
                <div class="popTitle">BILL NO</div>
                <div class="popInput"><input type="text" id="billCd" tabindex="90" onkeyup="this.value=this.value.toUpperCase()" style=";width:120px;background-color:#CBDDEE;" onblur="fnExistBillCd();"><input type="hidden" id="saveMode"></div>
            </div>
            <div>
                <div class="popTitle">발송일자</div>
                <div class="popInput" style="width:125px;"><input type="text" id="issueDt" tabindex="102" style="width:85px;text-align:center;margin-right:3px;" onKeyup="fnSetDate(this);" maxlength="10" value="<?=$__curDate?>"></div>
                <div class="popTitle" style="border:1px #F9F9F9 solid;">&nbsp;</div>
                <div class="popInput" style="width:120px;text-align:right;"><select id="flag" tabindex="103" style="width:80px;"><option value="Y">유효</option><option value="N">폐기</option></select></div>
            </div>
            <div>
                <div class="popTitle">Carrier</div>
                <div class="popInput">
                    <select id="expressCd" tabindex="104" onchange="fnSetExpressCompCd()"><option value="">-Express-</option></select>
                    <select id="cargoType" tabindex="105" style="width:80px;"><option value="">-TYPE-</option></select>
                </div>
            </div>
            <div>
                <div class="popTitle">지역/ZONE</div>
                <div class="popInput"><!--<select id="zone"><option value="">-지역/ZONE-</option></select>--><input type="text" id="zone" style="background-color:#FCF6CB;width:150px;" readonly><input type="hidden" id="destZone" style="background-color:#FCF6CB;width:150px;"></div>
            </div>
            <div>
                <div class="popTitle">Destination</div>
                <div class="popInput"><input type="text" id="destNationCd" tabindex="106" style="width:25px;" onkeyup="this.value=this.value.toUpperCase()" maxlength="2" onkeypress="fnGetZone(this,'N');"><input type="text" id="destAddr" tabindex="107" style="width:325px;" onkeyup="this.value=this.value.toUpperCase()"></div>
            </div>
            <div>
                <div class="popTitle">Shipper</div>
                <div class="popInput"><input type="text" id="compNm" tabindex="108" style="width:70px;ime-mode:auto;" onkeypress="fnComboCompany(this.value,'','compCd');"><select id="compCd" tabindex="108" onchange="fnSetExpressCompCd()"><option value="">-거래처-</option></select></div>
            </div>
            <div>
                <div class="popTitle">Consignee</div>
                <div class="popInput"><input type="text" id="consignee" tabindex="109" style="width:360px;" onkeyup="this.value=this.value.toUpperCase()"></div>
            </div>
            <div>
                <div class="popTitle">ITEM</div>
                <div class="popInput"><input type="text" id="item" tabindex="110" style="width:360px;" onkeyup="this.value=this.value.toUpperCase()"></div>
            </div>
            <div>
                <div class="popTitle">C/T</div>
                <div class="popInput"><input type="text" id="cargoTon" tabindex="112" style="width:85px;text-align:right;" value="1"></div>
            </div>
            <div>
                <div class="popTitle">W/T</div>
                <div class="popInput"><input type="text" id="weightTon" tabindex="113" style="width:85px;text-align:right;" onKeyup="fnCommify(this)" onkeypress="fnGetRate()" autofocus onfocus="this.value = this.value;"> &nbsp; <img src="/img/arrowRight.png"  style="vertical-align: text-bottom;"/>&nbsp; <input type="text" id="totalRate" style="width:120px;background-color:#FCF6CB;text-align:right;font-weight:bold;" readonly onkeyup="fnSetDate(this);"></div>
            </div>
            <div>
                <div class="popTitle">KG당 요율</div>
                <div class="popInput" style="width:125px;"><input type="text" id="ratePerWeight" style="width:85px;text-align:right;" onKeyup="fnCommify(this)"></div>
                <div class="popTitle">적용 KG 중량</div>
                <div class="popInput" style="width:120px;"><input type="text" id="totalRatePerWeight" style="width:85px;text-align:right;" readonly onkeyup="fnSetDate(this);"> KG</div>
            </div>
        </div>
        <div class="popGroup" style="height:112px;margin-top:10px;">
            <div style="margin-top:5px;">
                <div class="popTitle">화주D.C %</div>
                <div class="popInput" style="width:125px;"><input type="text" tabindex="115" id="compDCRate" style="width:50px;text-align:right;margin-right:3px;color:#cc0000;" autofocus onkeypress="fnGetProfit()"> %</div>
                <div class="popTitle">유류할증 %</div>
                <div class="popInput" style="width:120px;"><input type="text" tabindex="116" id="compOilRate" style="width:50px;text-align:right;margin-right:3px;color:#0000cc;" autofocus onkeypress="fnGetProfit()"> %</div>
            </div>
            <div>
                <div class="popTitle">D.C 금액</div>
                <div class="popInput" style="width:125px;"><input type="text" id="compDCAmount" style="width:120px;text-align:right;margin-right:3px;color:#cc0000;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
                <div class="popTitle">유류할증료</div>
                <div class="popInput" style="width:120px;"><input type="text" id="compOilAmount" style="width:120px;text-align:right;margin-right:3px;color:#0000cc;" onKeyup="fnCommify(this);" onkeypress="fnGetProfit()"></div>
            </div>
            <div>
                <div class="popTitle">화주청구금액</div>
                <div class="popInput" style="width:125px;"><input type="text" id="compInvAmount" style="width:120px;text-align:right;margin-right:3px;color:#0000cc;" onKeyup="fnCommify(this);" onkeypress="fnGetProfit()"></div>
                <div class="popTitle">TOTAL 청구금액</div>
                <div class="popInput" style="width:120px;"><input type="text" id="compTotalInvAmount" style="width:120px;text-align:right;margin-right:3px;font-weight:bold;color:#0000cc;" onKeyup="fnCommify(this);" onkeypress="fnGetProfit()"></div>
            </div>
            <div>
                <div class="popTitle">기타비용</div>
                <div class="popInput" style="width:125px;"><input type="text" tabindex="117" id="compExtraCharge" style="width:120px;text-align:right;margin-right:3px;color:#0000cc;" autofocus onKeyup="fnCommify(this);" onkeypress="fnGetProfit()"></div>
            </div>
        </div>
        <div class="popGroup" style="height:171px;margin-top:10px;">
            <div style="margin-top:5px;">
                <div class="popTitle">항공사D.C %</div>
                <div class="popInput" style="width:125px;"><input type="text" tabindex="118" id="carrDCRate" style="width:50px;text-align:right;margin-right:3px;color:#0000cc;" autofocus onkeypress="fnGetProfit()"> %</div>
                <div class="popTitle">유류할증 %</div>
                <div class="popInput" style="width:120px;"><input type="text" tabindex="119" id="carrOilRate" style="width:50px;text-align:right;margin-right:3px;color:#cc0000;" autofocus onkeypress="fnGetProfit()"> %</div>
            </div>
            <div>
                <div class="popTitle">D.C 금액</div>
                <div class="popInput" style="width:125px;"><input type="text" id="carrDCAmount" style="width:120px;text-align:right;margin-right:3px;color:#0000cc;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
                <div class="popTitle">유류할증료</div>
                <div class="popInput" style="width:125px;"><input type="text" id="carrOilAmount" style="width:120px;text-align:right;margin-right:3px;color:#cc0000;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
            </div>
            <div>
                <div class="popTitle">Carrier 청구</div>
                <div class="popInput" style="width:125px;"><input type="text" id="carrInvAmount" style="width:120px;text-align:right;margin-right:3px;color:#cc0000;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
                <div class="popTitle">TOTAL 청구금액</div>
                <div class="popInput" style="width:125px;"><input type="text" id="carrTotalInvAmount" style="width:120px;text-align:right;margin-right:3px;color:#cc0000;font-weight:bold;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
            </div>
            <div>
                <div class="popTitle">기타비용</div>
                <div class="popInput" style="width:125px;"><input type="text" tabindex="120" id="extraCharge" style="width:120px;text-align:right;margin-right:3px;color:#0000cc;" autofocus onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
                <div class="popTitle">PROFIT</div>
                <div class="popInput" style="width:125px;"><input type="text" id="profit" style="width:120px;text-align:right;margin-right:3px;background-color:#FCF6CB;font-weight:bold;color:#0000cc;" readonly></div>
            </div>
            <div>
                <div class="popTitle">메 모</div>
                <div class="popInput" style="width:125px;"><textarea id="remarks" tabindex="121" autofocus style="width:360px;height:50px;"></textarea></div>
            </div>
        </div>
        <div style="height:20px;padding-left:140px;">
            <div class="searchBtn" onClick="fnSave()" tabindex="122" onkeypress="fnSave()" style="width:50px;">저 장</div>
            <div class="searchBtn" onClick="fnReset()" style="width:50px;">신 규</div>
            <div class="searchBtn" onClick="fnCopy()" style="width:50px;">복 사</div>
            <div class="searchBtn" onClick="fnShadowPop('off')" style="width:50px;">닫기</div>
        </div>
    </div>
</div>
</body>
</html>